# 函数


# 基本参数类型
def base_param():
    a, b, c, d = 1, 1.23, '字符串', True
    e = 'aa' + 'bb' + \
        'cc'
    f = ['a', 'b', 'c']
    g = {'a', 'b'}
    print(a)
    print(b)
    print(c)
    print(d)
    print(e)
    print(f)
    print(g)


# !/usr/bin/env python3
# -*- coding:UTF-8 -*-

# 参数类型
def param_type():
    a = 1
    b = 'b'
    c = 1 + 2j
    d = 1.2333
    print(type(a))
    print(type(b))
    print(type(c))
    print(type(d))
    print(isinstance(a, int))


def hig_param():
    _list = [1, {'a', 'b', 'c', 'd'}, ('a', 'b', 'c', 'a'), {}]
    print(_list)
    print(_list[1])
    print(_list[2])
    _dict = _list[3]
    _dict['name'] = '张三'
    _dict['age'] = 18
    print(_dict)
    _dict1 = {'name': '张三', 'age': 18}
    print(_dict1)
    _dict2 = dict(name='张三', age=18)
    print(_dict2)
    _dict3 = dict([('name', '张三'), ('age', 18)])
    print(_dict3)
